package com.it.jzs.controller.admin;

import com.it.jzs.service.admin.AdminIndexService;
import com.it.jzs.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("admin")
@CrossOrigin
public class AdminIndexController {


    @Resource
    private AdminIndexService adminIndex;
    @GetMapping("index")
    public Result<Object> ListBlogPage() {
        Result<Object> result = adminIndex.selectIndex();
        return result;

    }
}
